<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * 为 Css 库中的方法提供快捷访问
 * @param $tag
 * @param $function
 * @return unknown_type
 */
function css_enqueue(){
	$CI =& get_instance();
	$args = func_get_args();
	foreach ( $args as $key => $value ){  
		$CI->css->enqueue($value);
	}
}
function css_export($ret_string=false){
	$CI =& get_instance();
	return $CI->css->export($ret_string);	
}
/**
 * 为 Script 库中的方法提供快捷访问
 * @param $tag
 * @param $function
 * @return unknown_type
 */
function js_enqueue(){
	$CI =& get_instance();
	$args = func_get_args();
	foreach ( $args as $key => $value ){  
		$CI->script->enqueue($value);	
	}
}
function js_export($ret_string=false){
	$CI =& get_instance();
	return $CI->script->export($ret_string);	
}

/**
 * 为 Pluggalbe 库中的方法提供快捷访问
 * @param $tag
 * @param $function
 * @return unknown_type
 */
function add_action($tag,$function){
	$CI =& get_instance();
	$CI->pluggable->jd_add_action($tag,$function);
} 
function do_action($tag){
	$CI =& get_instance();
	$CI->pluggable->jd_do_action($tag);
}
function add_filter($tag,$function){
	$CI =& get_instance();
	$CI->pluggable->jd_add_filter($tag,$function);
} 
function do_filter($tag,$value=''){
	$CI =& get_instance();
	return $CI->pluggable->jd_do_filter($tag,$value);
}
/* End of file */